'''
Created on Nov 13, 2009

@author: Owner
'''
import gamephase.game_phase as GP
import __builtin__

class Delay(GP.GamePhase):
	'''
	classdocs
	'''

	def __init__(self, iterations, phase_on_finish):
		'''
		Constructor
		'''
		self.count = iterations
		self.phase_on_finish = phase_on_finish
	
	def execute(self):
		self.count-=1
		if self.count == 0:
			__builtin__.G.game_phase = self.phase_on_finish